/** 
 * CanvasControlFrame.java
 * @author Lex
 * 2007-8-25 ����11:50:16
 */
package fun.ui.canvas.control;

import java.awt.Component;

import javax.swing.JInternalFrame;

public class ControlFrame extends JInternalFrame {
	public ControlFrame() {
		super();
		this.initialize();
	}

	public void moveToParent(Component parent) {
		int x = parent.getX() + parent.getWidth();
		this.setLocation(x, parent.getY());
	}

	private void initialize() {
		this.setResizable(true);
		this.setClosable(true);
	}
}
